#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>

int main()
{
	char input[20];
	system("shutdown -s -t 60");
	while (strcmp(input, "kuangzeyu") != 0)
	{
		scanf("%s", input);
	}
	system("shutdown -a");

	return 0;
}